﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SlFrame.Core
{
    public class ThemeRepository : EfRepositoryBase<Theme>, IThemeRepository
    {
        public bool Insert(Theme theme)
        {
            return base.Insert(theme);
        }

        public bool Update(Theme theme)
        {
            return base.Update(theme);
        }

        public bool Delete(Theme theme)
        {
            return base.Delete(theme);
        }

        public Theme Find(Guid id)
        {
            List<KeyValuePair<string, object>> keys = new List<KeyValuePair<string, object>>();
            keys.Add(new KeyValuePair<string, object>("Id", id));
            return base.Find(keys);
        }

        public List<Theme> FindAll()
        {
            return base.FindAll();
        }
    }
}
